﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CloudClip.Login;

namespace CloudClip.LocalFile
{
    public class LocalFileLoginProvider : ILoginProvider
    {
        public bool Login(frmMain frmMain)
        {
            UCLocalFileLogin ucLocalFileLogin = new UCLocalFileLogin();
            frmMain.LoginControl.Controls.Add(ucLocalFileLogin);

            //載入ClipProvider
            LocalFileClipProvider localFileClipProvider = new LocalFileClipProvider();
            frmMain.ClipProvider = localFileClipProvider;
            frmMain.ClipProvider.SyncClipList();

            //無需登入
            return true;
        }
    }
}
